.class public Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay;
.source "MraidFullscreenOverlay.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay",
        "<",
        "Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;",
        ">;"
    }
.end annotation


# static fields
.field private static final LOG:Lcom/burstly/lib/util/LoggerExt;

.field private static final TAG:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 38
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 43
    const-class v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;->TAG:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)V
    .locals 1
    .parameter "child"

    .prologue
    .line 51
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay;-><init>(Lcom/burstly/lib/util/UiSafeWebView;)V

    .line 52
    invoke-virtual {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {p1, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setContentParent(Landroid/view/ViewGroup;)V

    .line 53
    return-void
.end method


# virtual methods
.method protected bridge synthetic addChildToLayout(Landroid/view/ViewGroup;Landroid/view/View;)Landroid/view/View;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 33
    check-cast p2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    .end local p2
    invoke-virtual {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;->addChildToLayout(Landroid/view/ViewGroup;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method protected addChildToLayout(Landroid/view/ViewGroup;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)Landroid/view/View;
    .locals 6
    .parameter "containerLayout"
    .parameter "childView"

    .prologue
    .line 57
    invoke-super {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay;->addChildToLayout(Landroid/view/ViewGroup;Landroid/view/View;)Landroid/view/View;

    move-result-object v0

    .line 58
    .local v0, addChildToLayout:Landroid/view/View;
    instance-of v2, v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;

    if-eqz v2, :cond_0

    move-object v1, v0

    .line 59
    check-cast v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    .line 60
    .local v1, container:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer<*>;"
    invoke-virtual {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->setCloseClickListener(Landroid/view/View$OnClickListener;)V

    .line 61
    invoke-virtual {p2, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setCloseButtonControl(Lcom/burstly/lib/component/networkcomponent/burstly/html/ICloseControl;)V

    .line 67
    .end local v1           #container:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer<*>;"
    :goto_0
    return-object v0

    .line 63
    :cond_0
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;->TAG:Ljava/lang/String;

    const-string v4, "Mraid interstitial view doesn\'t implement ICloseControl interface, so mraid creatives won\'t be able to hide/show defult close button if any."

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2
    .parameter "v"

    .prologue
    .line 72
    invoke-super {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay;->onClick(Landroid/view/View;)V

    .line 75
    new-instance v1, Lcom/burstly/lib/util/ScreenOrientationManager;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;->getChildView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-direct {v1, v0}, Lcom/burstly/lib/util/ScreenOrientationManager;-><init>(Landroid/app/Activity;)V

    const/4 v0, 0x1

    invoke-virtual {v1, v0}, Lcom/burstly/lib/util/ScreenOrientationManager;->setOrientation(Z)V

    .line 76
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;->getChildView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->close()V

    .line 77
    return-void
.end method
